import request from '@/utils/request'
import url from './url'

export function createHostApi(data) {
  return request({
    url: url.createHostUrl,
    method: 'post',
    data
  })
}

export function updateHostApi(data) {
  return request({
    url: url.updateHostUrl,
    method: 'post',
    data
  })
}

export function deleteHostApi(data) {
  return request({
    url: url.deleteHostUrl,
    method: 'post',
    data
  })
}

export function getHostListApi(data) {
  return request({
    url: url.getHostListUrl,
    method: 'get',
    params: data
  })
}

export function getHostApi(data) {
  return request({
    url: url.getHostUrl,
    method: 'get',
    params: data
  })
}
